package com.bd.scm.domain.models.synchronization;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 访客进出记录表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("bd_visitor_items")
public class BdVisitorItems extends Model<BdVisitorItems> {

    private static final long serialVersionUID = 1L;

    @TableField("id")
    private Integer id;

    @TableField("order_id")
    private Integer orderId;

    @TableField("visitor_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date visitorDate;

    @TableField("visitor_number")
    private String visitorNumber;

    @TableField("visitor_card_no")
    private String visitorCardNo;

    @TableField("visitor_indatetime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date visitorIndatetime;

    @TableField("visitor_outdatetime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date visitorOutdatetime;

    @TableField("visitor_state")
    private String visitorState;
}
